package control;

import java.util.*;

/**
 * Order within the System
 * @author iii
 */
public class Order {

    private String orderNr;
    private String barType;
    private String customerNr;
    private int numOfBars;
    private int time;

    static ArrayList<Order> orders = new ArrayList<Order>();

    /**
     * Order within the System
     * @param String orderNr
     * @param String barType
     * @param int numOfBars
     * @param String customerNr
     * @param int time
     */
    public Order(String orderNr, String barType, int numOfBars, String customerNr, int time)
    {
        this.orderNr = orderNr;
        this.barType = barType;
        this.customerNr = customerNr;
        this.numOfBars = numOfBars;
        this.time = time;

        orders.add(this);
    }

    /**
     * Creates an order for the System
     * @param String orderNr
     * @param String barType
     * @param int numOfBars
     * @param String CustomerNr
     */
    public static void createOrder(String orderNr, String barType, int numOfBars, String customerNr, int time)
    {
        new Order(orderNr, barType, numOfBars, customerNr, time);
    }

    /**
     * @return the orderNr
     */
    public String getOrderNr() {
        return orderNr;
    }

    /**
     * @return the barType
     */
    public String getBarType() {
        return barType;
    }

    /**
     * @return the customerNr
     */
    public String getCustomerNr() {
        return customerNr;
    }

    /**
     * @return the numOfBars
     */
    public int getNumOfBars() {
        return numOfBars;
    }

    /**
     * @return the time
     */
    public int getTime() {
        return time;
    }

    
}
